﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using AutoChess;
public class ProfitDescPanel : MonoBehaviour
{
    public Text baseGold,interest,seriseWinGold,seriseLoseGold,winGold;
    public RectTransform clickRect;
    public GameObject contentRoot;
    public UGUITweenScale tweenScale;

    public void Open()
    {
        contentRoot.SetActive(true);
        tweenScale.ResetToBeginning();
        tweenScale.PlayForward();
    }
    public void Close()
    {
        contentRoot.SetActive(false);
    }
    public void RefreshUI(AutoChess.ACPlayerData player)
    {
        var result = player.GetProfitDescNext();
        baseGold.text = result[0];
        interest.text = result[1];
        winGold.text = result[2];
        seriseWinGold.text = result[3];
        seriseLoseGold.text = result[4];

    }
   
}
